import { HintBtnView } from "../mapUI/HintBtnView";
import { LayerManager } from "../../manager/LayerManager";
import { RightTopLayerLine } from "../../manager/RightTopLayerLine";
import { RightTopLayerIndex } from "../../manager/RightTopLayerIndex";
import { ObjCreate } from "../common/ObjCreate";
import { ResFileConst } from "../../resource/ResFileConst";
import { ParamsConst } from "../../../common/global/ParamsConst";
import { BrowerUtil } from "../../../../com/gengine/utils/BrowerUtil";
import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
//class GuibintongdaoHintBtn
    
    export  class GuibintongdaoHintBtn extends HintBtnView
    {
        constructor()
        {
            super();
            this.layer = LayerManager.rightTopUILayer;
            this.createChildren();
            this.addListeners();
            this.line = RightTopLayerLine.lineOne;
            this.index = RightTopLayerIndex.Guibintongdao;
            return;
        }

        /* internal  */createChildren(): void
        {
            this._guibintongdaoHintBtn = ObjCreate.createGLoadedButton(ResFileConst.GuibintongdaoBtn, 0, 0, 60, 50, this);
            this.vipHelpUrl = ParamsConst.instance.vipHelpUrl;
            return;
        }

        /* internal  */addListeners(): void
        {
            this._guibintongdaoHintBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onGuibintongdaoClick);
            return;
        }

        /* internal  */onGuibintongdaoClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            BrowerUtil.getUrl(this.vipHelpUrl);
            return;
        }

        /* internal */ /* var */_guibintongdaoHintBtn: GLoadedButton;

        public /* var */vipHelpUrl: string;
    }
